package com.bitmain.mmst.domain;

public class DetectionMiner {

	// 1检测到；2未检测到；3忽略
	private int flag;
	private String ipBlock;
	private int index;
	private String ip;
	private String mac;
	private double hashReal;
	private double hashAvg;
	private double hashTheo;
	private boolean goodHash;
	private String type;
	private int fanNumber;
	private boolean goodFanNum;
	private int fanSpeed;
	private boolean goodFanSpeed;
	private int tempNumber;
	private boolean goodTempNum;
	private int tempValue;
	private boolean goodTempValue;
	private int chipNumber;
	private boolean goodChipNum;
	private int chainNumber;
	private boolean goodChainNum;
	private String chains;
	private boolean good = true;

	public int getFlag() {
		return flag;
	}

	public void setFlag(int flag) {
		this.flag = flag;
	}

	public String getIpBlock() {
		return ipBlock;
	}

	public void setIpBlock(String ipBlock) {
		this.ipBlock = ipBlock;
	}

	public int getIndex() {
		return index;
	}

	public void setIndex(int index) {
		this.index = index;
	}

	public String getIp() {
		return ip;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getMac() {
		return mac;
	}

	public void setMac(String mac) {
		this.mac = mac;
	}

	public double getHashReal() {
		return hashReal;
	}

	public void setHashReal(double hashReal) {
		this.hashReal = hashReal;
	}

	public double getHashAvg() {
		return hashAvg;
	}

	public void setHashAvg(double hashAvg) {
		this.hashAvg = hashAvg;
	}

	public double getHashTheo() {
		return hashTheo;
	}

	public void setHashTheo(double hashTheo) {
		this.hashTheo = hashTheo;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public int getFanSpeed() {
		return fanSpeed;
	}

	public void setFanSpeed(int fanSpeed) {
		this.fanSpeed = fanSpeed;
	}

	public int getTempValue() {
		return tempValue;
	}

	public void setTempValue(int tempValue) {
		this.tempValue = tempValue;
	}

	public int getChipNumber() {
		return chipNumber;
	}

	public void setChipNumber(int chipNumber) {
		this.chipNumber = chipNumber;
	}

	public String getChains() {
		return chains;
	}

	public void setChains(String chains) {
		this.chains = chains;
	}

	public int getFanNumber() {
		return fanNumber;
	}

	public void setFanNumber(int fanNumber) {
		this.fanNumber = fanNumber;
	}

	public int getTempNumber() {
		return tempNumber;
	}

	public void setTempNumber(int tempNumber) {
		this.tempNumber = tempNumber;
	}

	public int getChainNumber() {
		return chainNumber;
	}

	public void setChainNumber(int chainNumber) {
		this.chainNumber = chainNumber;
	}

	public boolean isGoodHash() {
		return goodHash;
	}

	public void setGoodHash(boolean goodHash) {
		this.goodHash = goodHash;
		this.good &= goodHash;
	}

	public boolean isGoodFanNum() {
		return goodFanNum;
	}

	public void setGoodFanNum(boolean goodFanNum) {
		this.goodFanNum = goodFanNum;
		this.good &= goodFanNum;
	}

	public boolean isGoodFanSpeed() {
		return goodFanSpeed;
	}

	public void setGoodFanSpeed(boolean goodFanSpeed) {
		this.goodFanSpeed = goodFanSpeed;
		this.good &= goodFanSpeed;
	}

	public boolean isGoodTempNum() {
		return goodTempNum;
	}

	public void setGoodTempNum(boolean goodTempNum) {
		this.goodTempNum = goodTempNum;
		this.good &= goodTempNum;
	}

	public boolean isGoodTempValue() {
		return goodTempValue;
	}

	public void setGoodTempValue(boolean goodTempValue) {
		this.goodTempValue = goodTempValue;
		this.good &= goodTempValue;
	}

	public boolean isGoodChipNum() {
		return goodChipNum;
	}

	public void setGoodChipNum(boolean goodChipNum) {
		this.goodChipNum = goodChipNum;
		this.good &= goodChipNum;
	}

	public boolean isGoodChainNum() {
		return goodChainNum;
	}

	public void setGoodChainNum(boolean goodChainNum) {
		this.goodChainNum = goodChainNum;
		this.good &= goodChainNum;
	}

	public boolean isGood() {
		return good;
	}

	public void setGood(boolean good) {
		this.good = good;
	}

}
